<script>
	export default {
		globalData: {
			innerAudioContext: null,
		},
		methods: {
			// 音乐播放
			musicPlay() {
				this.globalData.innerAudioContext.play();
				this.globalData.innerAudioContext.onPlay((res) => {
					console.log(res, '音乐播放onPlay')
				})
			},
			// 音乐暂停
			musicStop() {
				this.globalData.innerAudioContext.pause();
				this.globalData.innerAudioContext.onPause((res) => {
					console.log(res, '暂停播放onStop')
				})
			},
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>


<style>
	@import '@/static/iconfont/iconfont.css';
	/*每个页面公共css */
</style>
